package com.smfx.yxt.view;

import java.io.Serializable;
import java.util.Date;

import com.smfx.yxt.common.Const;
import com.smfx.yxt.wechat.utils.WechatGlobalMap;

public class SchoolbusListView implements Serializable {
	
	private static final long serialVersionUID = 5234036092360691254L;
	
	//学生id
	private Integer studentId;
	//学生姓名
	private String studentName;
	//年级号
	private Integer grade;
	//班号
	private Integer clazz;
	//站点名称
	private String siteName;
	//站点id
	private Integer siteId;
	//线路id
	private Integer lineId;
	//线路名称
	private String lineName;
	//上车id
	private Long boardId;
	//当日是否上车
	private Integer isBoard;
	//上车 时间
	private Date boardTime;
	//家长openid
	private String parentOpenid;
	//家长姓名
	private String parentName;
	
	private String parentPhone1;
	
	private String parentPhone2;
	
	public Integer getStudentId() {
		return studentId;
	}
	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}
	public String getStudentName() {
		return studentName;
	}
	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	public Integer getGrade() {
		return grade;
	}
	public void setGrade(Integer grade) {
		this.grade = grade;
	}
	public Integer getClazz() {
		return clazz;
	}
	public void setClazz(Integer clazz) {
		this.clazz = clazz;
	}
	public String getSiteName() {
		return siteName;
	}
	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}
	public Integer getSiteId() {
		return siteId;
	}
	public void setSiteId(Integer siteId) {
		this.siteId = siteId;
	}
	public Integer getLineId() {
		return lineId;
	}
	public void setLineId(Integer lineId) {
		this.lineId = lineId;
	}
	public String getLineName() {
		return lineName;
	}
	public void setLineName(String lineName) {
		this.lineName = lineName;
	}
	
	public Long getBoardId() {
		return boardId;
	}
	public void setBoardId(Long boardId) {
		this.boardId = boardId;
	}
	public Integer getIsBoard() {
		return isBoard;
	}
	public void setIsBoard(Integer isBoard) {
		this.isBoard = isBoard;
	}
	
	public Date getBoardTime() {
		return boardTime;
	}
	public void setBoardTime(Date boardTime) {
		this.boardTime = boardTime;
	}
	public String getParentOpenid() {
		return parentOpenid;
	}
	public void setParentOpenid(String parentOpenid) {
		this.parentOpenid = parentOpenid;
	}
	public String getParentName() {
		return parentName;
	}
	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
	
	public String getGradeName(){
		TermView view = (TermView) WechatGlobalMap.get(Const.CACHE_TERM).getValue();
		return view.getGradeName(grade);
	}
	public String getParentPhone1() {
		return parentPhone1;
	}
	public void setParentPhone1(String parentPhone1) {
		this.parentPhone1 = parentPhone1;
	}
	public String getParentPhone2() {
		return parentPhone2;
	}
	public void setParentPhone2(String parentPhone2) {
		this.parentPhone2 = parentPhone2;
	}
	
}
